<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Books</title>
</head>
<body>
<h2>Books</h2>

{% if in_progress %}
    <h3>Currently reading:</h3>
    <ol>
        {% for book in book_list %}
            {% if book.status == "IN PROGRESS" %}
                <li><a href="/brp/book/{{ book.id }}/">{{ book.title }}</a></li>
            {% endif %}
        {% endfor %}
    </ol>
{% endif %}

{% if finished %}
    <h3>Finished:</h3>
    <ol>
        {% for book in book_list %}
            {% if book.status == "FINISHED" %}
                <li><a href="/brp/book/{{ book.id }}/">{{ book.title }}</a></li>
            {% endif %}
        {% endfor %}
    </ol>
{% endif %}

{% if not_read %}
    <h3>Not read:</h3>
    <ol>
        {% for book in book_list %}
            {% if book.status == "NOT READ" %}
                <li><a href="/brp/book/{{ book.id }}/">{{ book.title }}</a></li>
            {% endif %}
        {% endfor %}
    </ol>
{% endif %}

</body>
</html>